﻿#region Styx Namespaces
using Styx;
using Styx.CommonBot.Routines;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {

        /// <summary>
        /// Cost: 30 Energy |
        /// Range: 5 Yards (Combat) |
        /// Cast Time: Instant |
        /// GCD: 0 Second |
        /// WoWHead HyperLink: http://www.wowhead.com/spell=107428
        /// </summary>


        public bool SpearHandStrike()
        {
            return (MIRsettings.Instance.SpearHandStrike) &&
                (StyxWoW.Me.CurrentTarget != null) &&
                   (StyxWoW.Me.CurrentTarget.IsWithinMeleeRange) &&
                   (StyxWoW.Me.CurrentTarget.CanInterruptCurrentSpellCast ||
                   StyxWoW.Me.CurrentTarget.IsCastingHealingSpell) &&
                   CanCast("Spear Hand Strike");
        }
    }
}
